package org.akomantoso.core.data;

import org.akomantoso.core.data.attribute.CellAttrs;

/**
 * The element th is an HTML element and is used in Akoma Ntoso as in HTML, for a header cell of a table.
 * 
 * <pre>
 * <xsd:element name="th">
 * 		<xsd:complexType>
 * 			<xsd:complexContent>
 * 				<xsd:extension base="blocksopt">
 * 					<xsd:attributeGroup ref="cellattrs"/>
 * 				</xsd:extension>
 * 			</xsd:complexContent>
 * 		</xsd:complexType>
 * </xsd:element>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 */
public final class Th extends Blocksopt implements CellAttrs , TrElement {

	private int _rowSpan = 1;
	private int _colSpan = 1;

	/**
	 * @see org.akomantoso.core.data.attribute.CellAttrs#getRowSpan()
	 */
	public int getRowSpan() {
		return _rowSpan;
	}

	/**
	 * @see org.akomantoso.core.data.attribute.CellAttrs#setRowSpan(int)
	 */
	public void setRowSpan(int rowspan) {
		_rowSpan = rowspan;
	}

	/**
	 * @see org.akomantoso.core.data.attribute.CellAttrs#getColSpan()
	 */
	public int getColSpan() {
		return _colSpan;
	}

	/**
	 * @see org.akomantoso.core.data.attribute.CellAttrs#setColSpan(int)
	 */
	public void setColSpan(int colspan) {
		_colSpan = colspan;
	}

}